-- GENERATED SPELL FOR [Black Drakonid] --


function spell0_14265(pUnit, Event) --@Brood Power: Black,n/a--
pUnit:FullCastSpellOnTarget(22560,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14265', 575, 1)
end

function spell1_14265(pUnit, Event) --@Summon Player,n/a--
pUnit:FullCastSpellOnTarget(20477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14265', 608, 1)
end

function Sorts_14265(pUnit, Event)
local choix_sorts_14265 = math.random(0, 1)
if choix_sorts_14265 == 0 then
pUnit:RegisterEvent('spell0_14265', 1, 1)
end
if choix_sorts_14265 == 1 then
pUnit:RegisterEvent('spell1_14265', 1, 1)
end
end

function mob14265_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14265', math.random(1500, 3000), 1)
end

function mob14265_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14265_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14265_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14265, 1, 'mob14265_Action')
RegisterUnitEvent(14265, 2, 'mob14265_Leave')
RegisterUnitEvent(14265, 3, 'mob14265_Kill')
RegisterUnitEvent(14265, 4, 'mob14265_Die')
